#include <stdio.h>
#include <stdlib.h>

/*First program's function. Just print a string, followed by an newline*/

int print_hallo_message (void)
{
	printf("Hallo? Ja! Das ist print_hallo_message function output!\n");
}

/*Second program's function. Read a character and print it*/

char get_a_char (argv)
{

/*Initialize the 'character' variable*/
	char character;

/*Ask for a character*/
	printf("Enter a character und press the Enter key: ");

/*Read the character using getc()*/
	character = getc( stdin );

/*Print the entered character*/
	printf("The entered character was: %c\n",character);
}

/*Third program's function. Example of the 'for' loop*/
int first_loop (void)
{
	int i;

	for (i=0; i<10; i++)
	{
		printf("%d\n",i);
	}
}

/*Und we start the program! Let the main() function roll*/
main()
{
	print_hallo_message();
	get_a_char();
	first_loop();
/*We will exit with status zero if the things works as expected*/
	exit(0);
}
